package cn.geminis.manage.core.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * @author Allen
 */
@Entity
@Getter
@Setter
public class AdminPassword {

    @Id
    @Column(length = 32)
    private String id;

    @Column(nullable = false)
    private LocalDateTime passwordChangeTime;

    @Column(nullable = false, length = 128)
    private String password;

    @Column(length = 128)
    private String password2;

    @Column(length = 128)
    private String password3;

    @Column(length = 32)
    private String salt;

}
